/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package rg1threaddemo;

/**
 *
 * @author apple
 */
public class NumThread extends Thread
{
    private int[] array;
    private int start;

    public NumThread(int[] array, int start) {
        this.array = array;
        this.start = start;
    }

    @Override
    public void run() {
        for(int i=0;i<100;i++)
        {
            if(array[start+i]==666)
            {
                System.out.println(start+i);
            }
        }
    }
    
    
}
